from libs.StockData import StockData
'''
example:
code = 'sz.000001'  # 平安银行股票代码
start_date = '2022-01-01'
end_date = '2025-02-28'
frequency = 'd'  # 'd'表示日k线，'5'表示5分钟k线，'15'表示15分钟k线，'30'表示30分钟k线，'60'表示60分钟k线'
'''
def test_draw_kline(code, start_date, end_date, frequency):
    sd = StockData(code, start_date, end_date, frequency)
    sd.get_stock_data()
    sd.draw_kline_chart()
    